package com.cloudoer.blog.service;

import com.cloudoer.blog.model.Filed;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletException;
import java.io.IOException;
import java.util.List;

public interface FiledService {
    Filed getById(String id);

    List<Filed> getByPage (int pstart, int psize);

    List<Filed> getAll (String filetypeId);

    String add(MultipartFile multipartFile, String filetypeId) throws ServletException, IOException;

    int update(Filed filed);

    int delete(String id);

    int getCount();
}
